/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package uk.ac.cam.juliet.zedcat.client;

import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author Chris
 */
// Data class for Events.
// Holds an Events region, and distances to all known hotspots.
public class Event {

    private Region _region;
    private LinkedList<HotspotDistance> _hotspots;

    public Event() {
        _hotspots = new LinkedList<HotspotDistance>();
    }

    public void setRegion(Region r) {
        this._region = r;
    }

    public Region getRegion() {
        return this._region;
    }

    public List<HotspotDistance> getHotspotDistances() {
        return _hotspots;
    }

    public void addHotspot(Hotspot h, double distance) {
      _hotspots.add(new HotspotDistance(h, distance));
    }

}
